describe('practice-1-2', function () {

    it("一共有多少种借书方案", function () {
        var result = borrow_books_schema();
        console.info('all_scheme:'+result);
        expect(result.length).toBe(60);

        for(var i = 0; i < 60; i ++)
        {
            if(result[i].A === 2 && result[i].B === 1)
            {
                expect(result[i].C === 3 || result[i].C === 4 || result[i].C === 5).toBe(true);
                continue;
            }
            if(result[i].A === 4 && result[i].B === 3)
            {
                expect(result[i].C === 1 || result[i].C === 2 || result[i].C === 5).toBe(true);
                continue;
            }
            if(result[i].A === 5 && result[i].B === 4)
            {
                expect(result[i].C === 1 || result[i].C === 2 || result[i].C === 3).toBe(true);
                continue;
            }
        }
    });

});